<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>set_paint [HALCON算子参考手册]</title>
<style type="text/css">
      body {
    color: #000000;
    background-color: #ffffff;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.body_main {
    margin-left: 35px;
    margin-right: 35px;
}

@media screen and (min-width:992px) {

    .body_main {
        margin-left: 10%;
        margin-right: 10%;
    }

    table.toctable {
        width: 80%
    }
}

@media screen and (min-width:1400px) {

    .body_main {
        margin-left: 15%;
        margin-right: 15%;
    }

    table.toctable {
        width: 70%
    }
}

body>div ul ul {
    margin-left: inherit;
}

a:link {
    color: #0044cc;
}

a:link,
a:visited {
    text-decoration: none;
}

a:link:hover,
a:visited:hover {
    text-decoration: underline;
}

th {
    text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-rendering: optimizeLegibility;
    color: #666666;
}

code {
    font-family: monospace,monospace;
}

h1 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

h2 a.halconoperator {
    font-family: Arial, Helvetica, sans-serif;
    color: #666666;
}

hr {
    border: 0;
    border-top: solid 1px #f28d26;
}

.pre {
    display: block;
    padding-bottom: 1ex;
    font-family: monospace;
    white-space: pre;
}

pre {
    font-family: monospace, monospace;
    padding: 1ex;
    white-space: pre-wrap;
}

.toc {
    font-size: 80%;
    border-top: 1px dashed #f28d26;
    border-bottom: 1px dashed #f28d26;
    padding-top: 5px;
    padding-bottom: 5px;
}

.inv {
    margin: 0;
    border: 0;
    padding: 0;
}

.banner {
    color: #666666;
    padding-left: 1em;
}

.logo {
    background-color: white;
}

.keyboard {
    font-size: 80%;
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #f28d26;
    background-color: #f3f3f3;
}

.warning {
    margin-top: 2ex;
    margin-bottom: 1ex;
    padding: 10px;
    text-align: center;
    border: 1px solid;
    color: #bb0000;
    background-color: #fff7f7
}

.imprint {
    margin-top: 1ex;
    font-size: 80%;
    color: #666666;
}

.imprinthead {
    font-weight: bolder;
    color: #666666;
}

.indexlink {
    text-align: right;
    padding-bottom: 5px;
}

.postscript {
    margin-top: 2ex;
    font-size: 80%;
    color: #666666
}

.evenrow {
    background-color: #e7e7ef;
    vertical-align: top;
}

.oddrow {
    background-color: #f7f7ff;
    vertical-align: top;
}

.headrow {
    background-color: #97979f;
    color: #ffffff;
    vertical-align: top;
}

.logorow {
    vertical-align: top;
}

.error {
    color: red;
}

.var {
    font-style: italic
}

.halconoperator {
    font-family: monospace, monospace;
}

span.operator {
    font-family: monospace, monospace;
}

span.procedure {
    font-family: monospace, monospace;
}

span.operation {
    font-family: monospace, monospace;
}

span.feature {
    font-family: Arial, Helvetica, Homerton, sans-serif;
}

ul {
    padding-left: 1.2em;
}

li.dot {
    list-style-type: square;
    color: #f28d26;
}

.breadcrumb {
    font-size: 80%;
    color: white;
    background-color: #062d64;
    margin-bottom: 20px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 15px;
}

.webbar {
    font-size: 80%;
    background-color: #dddddd;
    margin-top: 0px;
    margin-left: -35px;
    margin-right: -35px;
    margin-bottom: 0px;
    padding-top: 5px;
    padding-left: 35px;
    padding-right: 35px;
    padding-bottom: 5px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 1px dashed #f28d26;
    font-size: 80%;
    color: #666666;
    padding-bottom: 8px;
}

.footer .socialmedia a {
    padding-left: 7px;
}

.socialmedia {
    padding-top: 10px;
}

.copyright {
    margin-top: 19px;
}

.breadcrumb a {
    color: #ffffff;
    border-bottom: 1px solid white;
}

.breadcrumb a:link:hover,
.breadcrumb a:visited:hover {
    text-decoration: none;
    border-bottom: none;
}

.heading {
    margin-top: 1ex;
    font-size: 110%;
    font-weight: bold;
    color: #666666;
}

.text {
    color: black;
}

.example {
    font-size: 80%;
    background-color: #f3f3f3;
    border: 1px dashed #666666;
    padding: 10px;
}

.displaymath {
    display: block;
    text-align: center;
    margin-top: 1ex;
    margin-bottom: 1ex;
}

.title {
    float: left;
    padding-top: 3px;
    padding-bottom: 3px;
}

.signnote {
    font-family: Arial, Helvetica, Homerton, sans-serif;
    font-size: 80%;
    color: #666666;
    font-weight: lighter;
    font-style: italic
}

.par {
    margin-bottom: 1.5em;
}

.parhead {
    text-align: right;
}

.parname {
    float: left;
}

.pardesc {
    font-size: 85%;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    margin-left: 2em;
}

.parcat {
    color: #666;
    font-weight: bold;
}

*[data-if=cpp],
*[data-if=c],
*[data-if=dotnet],
*[data-if=com],
*[data-if=python] {
    display: none;
}

.tabbar {
    text-align: right;
    border-bottom: 1px solid #f28d26;
    margin-bottom: 0.5em;
}

ul.tabs {
    padding-top: 3px;
    padding-bottom: 3px;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 80%
}

ul.tabs li {
    padding-top: 3px;
    padding-bottom: 3px;
    display: inline;
    overflow: hidden;
    list-style-type: none;
    margin: 0;
    margin-left: 8px;
    border-top: 1px solid #666;
    border-left: 1px solid #666;
    border-right: 1px solid #666;
}

ul.tabs li.active {
    border-left: 1px solid #f28d26;
    border-right: 1px solid #f28d26;
    border-top: 1px solid #f28d26;
    border-bottom: 1px solid #fff;
}

ul.tabs li.inactive {
    background-color: #eee;
}

ul.tabs li a {
    padding-left: 5px;
    padding-right: 5px;
    color: #666;
}

ul.tabs li a:link:hover {
    text-decoration: none;
}

ul.tabs li.inactive a {
    color: #666;
}

ul.tabs li.active a {
    color: black;
}

dl.generic dd {
    margin-bottom: 1em;
}

.pari {
    color: olive;
}

.paro {
    color: maroon;
}

.comment {
    font-size: 80%;
    color: green;
    white-space: nowrap;
}

table.grid {
    border-collapse: collapse;
}

table.grid td {
    padding: 5px;
    border: 1px solid;
}

table.layout {
    border: 0px;
}

table.layout td {
    padding: 5px;
}

table.table {
    border-collapse: collapse;
}

table.table td {
    padding: 5px;
    border-left: 0px;
    border-right: 0px;
}

table.table tr:last-child {
    border-bottom: 1px solid;
}

table.table th {
    padding: 5px;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-left: 0px;
    border-right: 0px;
}

.details_summary {
    cursor: pointer;
}

table.toctable {
    width: 100%;
}

table.toctable col:first-child {
    width: 20%;
}

table.toctable col:nth-last-child(2) {
    width: 8%;
}

table.altcolored tr:nth-child(even) {
    background-color: #f3f3f3;
}

    </style>
<!--OP_REF_STYLE_END-->
<script>
    <!--
var active_lang='hdevelop';function switchVisibility(obj,active_lang,new_lang)
{var display_style='inline';
for(var i=0;i<obj.length;i++)
{if(obj.item(i).getAttribute('data-if')==new_lang)
{obj.item(i).style.display=display_style;}
if(obj.item(i).getAttribute('data-if')==active_lang)
{obj.item(i).style.display='none';}}
return;}
function toggleLanguage(new_lang,initial)
{if(active_lang!=new_lang)
{var lis=document.getElementsByTagName('li');for(var i=0;i<lis.length;i++)
{if(lis.item(i).id=='syn-'+new_lang)
{lis.item(i).className='active';}
else
{lis.item(i).className='inactive';}}
var divs=document.getElementsByTagName('div');var spans=document.getElementsByTagName('span');switchVisibility(divs,active_lang,new_lang);switchVisibility(spans,active_lang,new_lang);if(!initial)
{setCookie("halcon_reference_language",new_lang,null,null);}
active_lang=new_lang;}
return;}
function setCookie(name,value,domain,exp_offset,path,secure)
{localStorage.setItem(name,value);}
function getCookie(name)
{return localStorage.getItem(name);}
function initialize()
{var qs=location.href.split('?')[1];var qs_lang_raw=location.href.split('interface=')[1];var qs_lang;if(qs_lang_raw)
{qs_lang=qs_lang_raw.split('#')[0];}
var cookie_lang=getCookie("halcon_reference_language");var new_lang;if((qs_lang=="hdevelop")||(qs_lang=="dotnet")||(qs_lang=="python")||(qs_lang=="cpp")||(qs_lang=="c"))
{new_lang=qs_lang;setCookie("halcon_reference_language",new_lang,null,null);}
else if((cookie_lang=="hdevelop")||(cookie_lang=="dotnet")||(cookie_lang=="python")||(cookie_lang=="cpp")||(cookie_lang=="c"))
{new_lang=cookie_lang;}
else
{new_lang="hdevelop";}
toggleLanguage(new_lang,1);return;}
-->

  </script>
</head>
<body onload="initialize();">
<div class="breadcrumb">
<br class="inv"><a href="index.html">目录</a> / <a href="toc_graphics.html">图形</a> / <a href="toc_graphics_parameters.html">参数表</a><br class="inv">
</div>
<div class="body_main">
<div class="tabbar"><ul class="tabs">
<li id="syn-hdevelop" class="active"><a href="javascript:void(0);" onclick="toggleLanguage('hdevelop')" onfocus="blur()">HDevelop</a></li>
<li id="syn-dotnet" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('dotnet')" onfocus="blur()">.NET</a></li>
<li id="syn-python" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('python')" onfocus="blur()">Python</a></li>
<li id="syn-cpp" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('cpp')" onfocus="blur()">C++</a></li>
<li id="syn-c" class="inactive"><a href="javascript:void(0);" onclick="toggleLanguage('c')" onfocus="blur()">C</a></li>
</ul></div>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<!--OP_REF_HEADER_END-->
<h1 id="sec_name">
<span data-if="hdevelop" style="display:inline;">set_paint</span><span data-if="c" style="display:none;">T_set_paint</span><span data-if="cpp" style="display:none;">SetPaint</span><span data-if="dotnet" style="display:none;">SetPaint</span><span data-if="python" style="display:none;">set_paint</span> (算子名称)</h1>
<h2>名称</h2>
<p><code><span data-if="hdevelop" style="display:inline;">set_paint</span><span data-if="c" style="display:none;">T_set_paint</span><span data-if="cpp" style="display:none;">SetPaint</span><span data-if="dotnet" style="display:none;">SetPaint</span><span data-if="python" style="display:none;">set_paint</span></code> — Define the gray value output mode.</p>
<h2 id="sec_synopsis">参数签名</h2>
<div data-if="hdevelop" style="display:inline;">
<p>
<code><b>set_paint</b>( :  : <a href="#WindowHandle"><i>WindowHandle</i></a>, <a href="#Mode"><i>Mode</i></a> : )</code></p>
</div>
<div data-if="c" style="display:none;">
<p>
<code>Herror <b>T_set_paint</b>(const Htuple <a href="#WindowHandle"><i>WindowHandle</i></a>, const Htuple <a href="#Mode"><i>Mode</i></a>)</code></p>
</div>
<div data-if="cpp" style="display:none;">
<p>
<code>void <b>SetPaint</b>(const HTuple&amp; <a href="#WindowHandle"><i>WindowHandle</i></a>, const HTuple&amp; <a href="#Mode"><i>Mode</i></a>)</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>::<b>SetPaint</b>(const HTuple&amp; <a href="#Mode"><i>Mode</i></a>) const</code></p>
</div>
<div data-if="com" style="display:none;"></div>
<div data-if="dotnet" style="display:none;">
<p>
<code>static void <a href="HOperatorSet.html">HOperatorSet</a>.<b>SetPaint</b>(<a href="HTuple.html">HTuple</a> <a href="#WindowHandle"><i>windowHandle</i></a>, <a href="HTuple.html">HTuple</a> <a href="#Mode"><i>mode</i></a>)</code></p>
<p>
<code>void <a href="HWindow.html">HWindow</a>.<b>SetPaint</b>(<a href="HTuple.html">HTuple</a> <a href="#Mode"><i>mode</i></a>)</code></p>
</div>
<div data-if="python" style="display:none;">
<p>
<code>def <b>set_paint</b>(<a href="#WindowHandle"><i>window_handle</i></a>: HHandle, <a href="#Mode"><i>mode</i></a>: Sequence[Union[int, str, float]]) -&gt; None</code></p>
</div>
<h2 id="sec_description">描述</h2>
<p><code><span data-if="hdevelop" style="display:inline">set_paint</span><span data-if="c" style="display:none">set_paint</span><span data-if="cpp" style="display:none">SetPaint</span><span data-if="com" style="display:none">SetPaint</span><span data-if="dotnet" style="display:none">SetPaint</span><span data-if="python" style="display:none">set_paint</span></code> defines the output mode for gray value display
(single- or multichannel) in the window.  The mode is used by
<a href="disp_obj.html"><code><span data-if="hdevelop" style="display:inline">disp_obj</span><span data-if="c" style="display:none">disp_obj</span><span data-if="cpp" style="display:none">DispObj</span><span data-if="com" style="display:none">DispObj</span><span data-if="dotnet" style="display:none">DispObj</span><span data-if="python" style="display:none">disp_obj</span></code></a>, <a href="disp_image.html"><code><span data-if="hdevelop" style="display:inline">disp_image</span><span data-if="c" style="display:none">disp_image</span><span data-if="cpp" style="display:none">DispImage</span><span data-if="com" style="display:none">DispImage</span><span data-if="dotnet" style="display:none">DispImage</span><span data-if="python" style="display:none">disp_image</span></code></a>, and <a href="disp_color.html"><code><span data-if="hdevelop" style="display:inline">disp_color</span><span data-if="c" style="display:none">disp_color</span><span data-if="cpp" style="display:none">DispColor</span><span data-if="com" style="display:none">DispColor</span><span data-if="dotnet" style="display:none">DispColor</span><span data-if="python" style="display:none">disp_color</span></code></a>.
</p>
<p>Different image types and their possible implication on the <a href="#Mode"><i><code><span data-if="hdevelop" style="display:inline">Mode</span><span data-if="c" style="display:none">Mode</span><span data-if="cpp" style="display:none">Mode</span><span data-if="com" style="display:none">Mode</span><span data-if="dotnet" style="display:none">mode</span><span data-if="python" style="display:none">mode</span></code></i></a>:
</p>
<ul>
<li>
<p> Gray images can also be interpreted as 3D data, depending on the
gray value. To view these 3D plots, select the modes <i><span data-if="hdevelop" style="display:inline">'3d_plot'</span><span data-if="c" style="display:none">"3d_plot"</span><span data-if="cpp" style="display:none">"3d_plot"</span><span data-if="com" style="display:none">"3d_plot"</span><span data-if="dotnet" style="display:none">"3d_plot"</span><span data-if="python" style="display:none">"3d_plot"</span></i>.
</p>
</li>
<li>
<p> Three-channel images are interpreted as RGB images.
</p>
</li>
<li>
<p> Vector field images can be viewed as <i><span data-if="hdevelop" style="display:inline">'vector_field'</span><span data-if="c" style="display:none">"vector_field"</span><span data-if="cpp" style="display:none">"vector_field"</span><span data-if="com" style="display:none">"vector_field"</span><span data-if="dotnet" style="display:none">"vector_field"</span><span data-if="python" style="display:none">"vector_field"</span></i>.
</p>
</li>
</ul>
<p>
In most cases the setting <a href="#Mode"><i><code><span data-if="hdevelop" style="display:inline">Mode</span><span data-if="c" style="display:none">Mode</span><span data-if="cpp" style="display:none">Mode</span><span data-if="com" style="display:none">Mode</span><span data-if="dotnet" style="display:none">mode</span><span data-if="python" style="display:none">mode</span></code></i></a> <i><span data-if="hdevelop" style="display:inline">'default'</span><span data-if="c" style="display:none">"default"</span><span data-if="cpp" style="display:none">"default"</span><span data-if="com" style="display:none">"default"</span><span data-if="dotnet" style="display:none">"default"</span><span data-if="python" style="display:none">"default"</span></i>
is the most suitable.
</p>
<p>Depending on the selected mode, the <a href="#Mode"><i><code><span data-if="hdevelop" style="display:inline">Mode</span><span data-if="c" style="display:none">Mode</span><span data-if="cpp" style="display:none">Mode</span><span data-if="com" style="display:none">Mode</span><span data-if="dotnet" style="display:none">mode</span><span data-if="python" style="display:none">mode</span></code></i></a> may accept a tuple as value.
In these cases the entries can be passed the following ways:
</p>
<ul>
<li>
<p> Only the name of the mode is passed: The defaults or the most
recently used values are used, respectively.
</p>
<p>Example: <code><span data-if="hdevelop" style="display:inline">set_paint(WindowHandle,'3d_plot')</span><span data-if="c" style="display:none">set_paint(WindowHandle,"3d_plot")</span><span data-if="cpp" style="display:none">SetPaint(WindowHandle,"3d_plot")</span><span data-if="com" style="display:none">SetPaint(WindowHandle,"3d_plot")</span><span data-if="dotnet" style="display:none">SetPaint(WindowHandle,"3d_plot")</span><span data-if="python" style="display:none">set_paint(WindowHandle,"3d_plot")</span></code>
</p>
</li>
<li>
<p> All values are passed: All output characteristics can be set.</p>
<p>
<i>Example:</i> <code><span data-if="hdevelop" style="display:inline">set_paint(WindowHandle, ['3d_plot', 'shaded', 8,
  0.939, -0.052, 0.296, -0.165, 0.401, 0.072, -0.047, -0.073])</span><span data-if="c" style="display:none">set_paint(WindowHandle, ["3d_plot", "shaded", 8,
  0.939, -0.052, 0.296, -0.165, 0.401, 0.072, -0.047, -0.073])</span><span data-if="cpp" style="display:none">SetPaint(WindowHandle, ["3d_plot", "shaded", 8,
  0.939, -0.052, 0.296, -0.165, 0.401, 0.072, -0.047, -0.073])</span><span data-if="com" style="display:none">SetPaint(WindowHandle, ["3d_plot", "shaded", 8,
  0.939, -0.052, 0.296, -0.165, 0.401, 0.072, -0.047, -0.073])</span><span data-if="dotnet" style="display:none">SetPaint(WindowHandle, ["3d_plot", "shaded", 8,
  0.939, -0.052, 0.296, -0.165, 0.401, 0.072, -0.047, -0.073])</span><span data-if="python" style="display:none">set_paint(WindowHandle, ["3d_plot", "shaded", 8,
  0.939, -0.052, 0.296, -0.165, 0.401, 0.072, -0.047, -0.073])</span></code>
</p>
</li>
<li>
<p> Only the first n values are passed: Only the passed values are
changed.</p>
<p>
<i>Example:</i> <code><span data-if="hdevelop" style="display:inline">set_paint(WindowHandle,['3d_plot','texture'])</span><span data-if="c" style="display:none">set_paint(WindowHandle,["3d_plot","texture"])</span><span data-if="cpp" style="display:none">SetPaint(WindowHandle,["3d_plot","texture"])</span><span data-if="com" style="display:none">SetPaint(WindowHandle,["3d_plot","texture"])</span><span data-if="dotnet" style="display:none">SetPaint(WindowHandle,["3d_plot","texture"])</span><span data-if="python" style="display:none">set_paint(WindowHandle,["3d_plot","texture"])</span></code>
</p>
</li>
<li>
<p> Some of the values are replaced by an asterisk ('*'): The value of
the replaced parameters is not changed.</p>
<p>
<i>Example:</i> <code><span data-if="hdevelop" style="display:inline">set_paint(WindowHandle,['3d_plot', '*' ,8])</span><span data-if="c" style="display:none">set_paint(WindowHandle,["3d_plot", "*" ,8])</span><span data-if="cpp" style="display:none">SetPaint(WindowHandle,["3d_plot", "*" ,8])</span><span data-if="com" style="display:none">SetPaint(WindowHandle,["3d_plot", "*" ,8])</span><span data-if="dotnet" style="display:none">SetPaint(WindowHandle,["3d_plot", "*" ,8])</span><span data-if="python" style="display:none">set_paint(WindowHandle,["3d_plot", "*" ,8])</span></code>
</p>
</li>
</ul>
<p>If the current mode is <i><span data-if="hdevelop" style="display:inline">'default'</span><span data-if="c" style="display:none">"default"</span><span data-if="cpp" style="display:none">"default"</span><span data-if="com" style="display:none">"default"</span><span data-if="dotnet" style="display:none">"default"</span><span data-if="python" style="display:none">"default"</span></i>, HALCON chooses a suitable
algorithm for the output of 2- and 3-channel images. No
<code><span data-if="hdevelop" style="display:inline">set_paint</span><span data-if="c" style="display:none">set_paint</span><span data-if="cpp" style="display:none">SetPaint</span><span data-if="com" style="display:none">SetPaint</span><span data-if="dotnet" style="display:none">SetPaint</span><span data-if="python" style="display:none">set_paint</span></code> call is necessary in this case.
</p>
<p>Apart from <code><span data-if="hdevelop" style="display:inline">set_paint</span><span data-if="c" style="display:none">set_paint</span><span data-if="cpp" style="display:none">SetPaint</span><span data-if="com" style="display:none">SetPaint</span><span data-if="dotnet" style="display:none">SetPaint</span><span data-if="python" style="display:none">set_paint</span></code> there are other operators that affect
the output of gray values. The most important of them are
<a href="set_part.html"><code><span data-if="hdevelop" style="display:inline">set_part</span><span data-if="c" style="display:none">set_part</span><span data-if="cpp" style="display:none">SetPart</span><span data-if="com" style="display:none">SetPart</span><span data-if="dotnet" style="display:none">SetPart</span><span data-if="python" style="display:none">set_part</span></code></a>, <a href="set_part_style.html"><code><span data-if="hdevelop" style="display:inline">set_part_style</span><span data-if="c" style="display:none">set_part_style</span><span data-if="cpp" style="display:none">SetPartStyle</span><span data-if="com" style="display:none">SetPartStyle</span><span data-if="dotnet" style="display:none">SetPartStyle</span><span data-if="python" style="display:none">set_part_style</span></code></a> and <a href="set_lut.html"><code><span data-if="hdevelop" style="display:inline">set_lut</span><span data-if="c" style="display:none">set_lut</span><span data-if="cpp" style="display:none">SetLut</span><span data-if="com" style="display:none">SetLut</span><span data-if="dotnet" style="display:none">SetLut</span><span data-if="python" style="display:none">set_lut</span></code></a>.
Some output modes display gray values using
region output (e.g., <i><span data-if="hdevelop" style="display:inline">'3d_plot'</span><span data-if="c" style="display:none">"3d_plot"</span><span data-if="cpp" style="display:none">"3d_plot"</span><span data-if="com" style="display:none">"3d_plot"</span><span data-if="dotnet" style="display:none">"3d_plot"</span><span data-if="python" style="display:none">"3d_plot"</span></i>).
In these modes, parameters set with <a href="set_color.html"><code><span data-if="hdevelop" style="display:inline">set_color</span><span data-if="c" style="display:none">set_color</span><span data-if="cpp" style="display:none">SetColor</span><span data-if="com" style="display:none">SetColor</span><span data-if="dotnet" style="display:none">SetColor</span><span data-if="python" style="display:none">set_color</span></code></a>,
<a href="set_rgb.html"><code><span data-if="hdevelop" style="display:inline">set_rgb</span><span data-if="c" style="display:none">set_rgb</span><span data-if="cpp" style="display:none">SetRgb</span><span data-if="com" style="display:none">SetRgb</span><span data-if="dotnet" style="display:none">SetRgb</span><span data-if="python" style="display:none">set_rgb</span></code></a>, <a href="set_hsi.html"><code><span data-if="hdevelop" style="display:inline">set_hsi</span><span data-if="c" style="display:none">set_hsi</span><span data-if="cpp" style="display:none">SetHsi</span><span data-if="com" style="display:none">SetHsi</span><span data-if="dotnet" style="display:none">SetHsi</span><span data-if="python" style="display:none">set_hsi</span></code></a>, <a href="set_shape.html"><code><span data-if="hdevelop" style="display:inline">set_shape</span><span data-if="c" style="display:none">set_shape</span><span data-if="cpp" style="display:none">SetShape</span><span data-if="com" style="display:none">SetShape</span><span data-if="dotnet" style="display:none">SetShape</span><span data-if="python" style="display:none">set_shape</span></code></a>, <a href="set_line_width.html"><code><span data-if="hdevelop" style="display:inline">set_line_width</span><span data-if="c" style="display:none">set_line_width</span><span data-if="cpp" style="display:none">SetLineWidth</span><span data-if="com" style="display:none">SetLineWidth</span><span data-if="dotnet" style="display:none">SetLineWidth</span><span data-if="python" style="display:none">set_line_width</span></code></a>
and <a href="set_insert.html"><code><span data-if="hdevelop" style="display:inline">set_insert</span><span data-if="c" style="display:none">set_insert</span><span data-if="cpp" style="display:none">SetInsert</span><span data-if="com" style="display:none">SetInsert</span><span data-if="dotnet" style="display:none">SetInsert</span><span data-if="python" style="display:none">set_insert</span></code></a> influence gray value output.
In case of unexpected results, check the values of the display parameters.
</p>
<p>All available painting modes can be queried with <a href="query_paint.html"><code><span data-if="hdevelop" style="display:inline">query_paint</span><span data-if="c" style="display:none">query_paint</span><span data-if="cpp" style="display:none">QueryPaint</span><span data-if="com" style="display:none">QueryPaint</span><span data-if="dotnet" style="display:none">QueryPaint</span><span data-if="python" style="display:none">query_paint</span></code></a>.
Possible values for <a href="#Mode"><i><code><span data-if="hdevelop" style="display:inline">Mode</span><span data-if="c" style="display:none">Mode</span><span data-if="cpp" style="display:none">Mode</span><span data-if="com" style="display:none">Mode</span><span data-if="dotnet" style="display:none">mode</span><span data-if="python" style="display:none">mode</span></code></i></a>:
</p>
<dl class="generic">

<dt><b><i><span data-if="hdevelop" style="display:inline">'default'</span><span data-if="c" style="display:none">"default"</span><span data-if="cpp" style="display:none">"default"</span><span data-if="com" style="display:none">"default"</span><span data-if="dotnet" style="display:none">"default"</span><span data-if="python" style="display:none">"default"</span></i></b></dt>
<dd>
<p>

Optimal display on given hardware (default value).
Its behavior depends on the number of channels of the input image:
</p>
<ul>
<li>
<p> One-channel image: Output the single channel.
</p>
</li>
<li>
<p> Two-channel images: Output the first channel.
</p>
</li>
<li>
<p> Three-channel images: Output as RGB image.
</p>
</li>
</ul>

</dd>

<dt><b><i><span data-if="hdevelop" style="display:inline">['3d_plot', Mode, Step, qa, qb, qc, qd, ZoomFac, CenterRow,
  CenterCol, CenterHeight]</span><span data-if="c" style="display:none">["3d_plot", Mode, Step, qa, qb, qc, qd, ZoomFac, CenterRow,
  CenterCol, CenterHeight]</span><span data-if="cpp" style="display:none">["3d_plot", Mode, Step, qa, qb, qc, qd, ZoomFac, CenterRow,
  CenterCol, CenterHeight]</span><span data-if="com" style="display:none">["3d_plot", Mode, Step, qa, qb, qc, qd, ZoomFac, CenterRow,
  CenterCol, CenterHeight]</span><span data-if="dotnet" style="display:none">["3d_plot", Mode, Step, qa, qb, qc, qd, ZoomFac, CenterRow,
  CenterCol, CenterHeight]</span><span data-if="python" style="display:none">["3d_plot", Mode, Step, qa, qb, qc, qd, ZoomFac, CenterRow,
  CenterCol, CenterHeight]</span></i></b></dt>
<dd>
<p>

Gray values are interpreted as a 3D height field and displayed using OpenGL.
Thereby the different parameters are:
</p>
<ul>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'Mode'</span><span data-if="c" style="display:none">"Mode"</span><span data-if="cpp" style="display:none">"Mode"</span><span data-if="com" style="display:none">"Mode"</span><span data-if="dotnet" style="display:none">"Mode"</span><span data-if="python" style="display:none">"Mode"</span></i>: Specifies the way in which the height
field is displayed. The following modes are supported:
</p>
<ul>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'texture'</span><span data-if="c" style="display:none">"texture"</span><span data-if="cpp" style="display:none">"texture"</span><span data-if="com" style="display:none">"texture"</span><span data-if="dotnet" style="display:none">"texture"</span><span data-if="python" style="display:none">"texture"</span></i>: The height field is displayed as a closed
surface and colored using texture mapping.
The texture is passed as the second channel (for a gray-valued texture)
or as the second to fourth channel (for a colored texture) of the image
to display.
</p>
</li>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'shaded'</span><span data-if="c" style="display:none">"shaded"</span><span data-if="cpp" style="display:none">"shaded"</span><span data-if="com" style="display:none">"shaded"</span><span data-if="dotnet" style="display:none">"shaded"</span><span data-if="python" style="display:none">"shaded"</span></i>: The height field is displayed as a closed
surface and colored using the current LUT.
</p>
</li>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'hidden_lines'</span><span data-if="c" style="display:none">"hidden_lines"</span><span data-if="cpp" style="display:none">"hidden_lines"</span><span data-if="com" style="display:none">"hidden_lines"</span><span data-if="dotnet" style="display:none">"hidden_lines"</span><span data-if="python" style="display:none">"hidden_lines"</span></i>: The height field is displayed as a hidden
line plot and colored using the current LUT.
</p>
</li>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'contour_lines'</span><span data-if="c" style="display:none">"contour_lines"</span><span data-if="cpp" style="display:none">"contour_lines"</span><span data-if="com" style="display:none">"contour_lines"</span><span data-if="dotnet" style="display:none">"contour_lines"</span><span data-if="python" style="display:none">"contour_lines"</span></i>: Height lines are extracted
and displayed at their actual height.
Again the lines are colored using the current LUT.
</p>
</li>
</ul>

</li>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'Step'</span><span data-if="c" style="display:none">"Step"</span><span data-if="cpp" style="display:none">"Step"</span><span data-if="com" style="display:none">"Step"</span><span data-if="dotnet" style="display:none">"Step"</span><span data-if="python" style="display:none">"Step"</span></i>: Step width, i.e., at what intervals samples in row
and column direction are taken from the image. The smaller
this parameter is chosen, the finer the resulting height field.
However, computation time increases while this parameter decreases.
In the case of <i><span data-if="hdevelop" style="display:inline">'contour_lines'</span><span data-if="c" style="display:none">"contour_lines"</span><span data-if="cpp" style="display:none">"contour_lines"</span><span data-if="com" style="display:none">"contour_lines"</span><span data-if="dotnet" style="display:none">"contour_lines"</span><span data-if="python" style="display:none">"contour_lines"</span></i> this parameter corresponds to the
number of intervals the height range is divided into.
</p>
</li>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'qa'</span><span data-if="c" style="display:none">"qa"</span><span data-if="cpp" style="display:none">"qa"</span><span data-if="com" style="display:none">"qa"</span><span data-if="dotnet" style="display:none">"qa"</span><span data-if="python" style="display:none">"qa"</span></i>,<i><span data-if="hdevelop" style="display:inline">'qb'</span><span data-if="c" style="display:none">"qb"</span><span data-if="cpp" style="display:none">"qb"</span><span data-if="com" style="display:none">"qb"</span><span data-if="dotnet" style="display:none">"qb"</span><span data-if="python" style="display:none">"qb"</span></i>,<i><span data-if="hdevelop" style="display:inline">'qc'</span><span data-if="c" style="display:none">"qc"</span><span data-if="cpp" style="display:none">"qc"</span><span data-if="com" style="display:none">"qc"</span><span data-if="dotnet" style="display:none">"qc"</span><span data-if="python" style="display:none">"qc"</span></i>,<i><span data-if="hdevelop" style="display:inline">'qd'</span><span data-if="c" style="display:none">"qd"</span><span data-if="cpp" style="display:none">"qd"</span><span data-if="com" style="display:none">"qd"</span><span data-if="dotnet" style="display:none">"qd"</span><span data-if="python" style="display:none">"qd"</span></i>: The four values of a
unit quaternion, describing the orientation of the height field
(see <a href="axis_angle_to_quat.html"><code><span data-if="hdevelop" style="display:inline">axis_angle_to_quat</span><span data-if="c" style="display:none">axis_angle_to_quat</span><span data-if="cpp" style="display:none">AxisAngleToQuat</span><span data-if="com" style="display:none">AxisAngleToQuat</span><span data-if="dotnet" style="display:none">AxisAngleToQuat</span><span data-if="python" style="display:none">axis_angle_to_quat</span></code></a> for more information on quaternions).
</p>
</li>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'ZoomFac'</span><span data-if="c" style="display:none">"ZoomFac"</span><span data-if="cpp" style="display:none">"ZoomFac"</span><span data-if="com" style="display:none">"ZoomFac"</span><span data-if="dotnet" style="display:none">"ZoomFac"</span><span data-if="python" style="display:none">"ZoomFac"</span></i>: Zooming factor, whereby smaller values implicate
higher zooming.
</p>
</li>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'CenterRow'</span><span data-if="c" style="display:none">"CenterRow"</span><span data-if="cpp" style="display:none">"CenterRow"</span><span data-if="com" style="display:none">"CenterRow"</span><span data-if="dotnet" style="display:none">"CenterRow"</span><span data-if="python" style="display:none">"CenterRow"</span></i>, <i><span data-if="hdevelop" style="display:inline">'CenterCol'</span><span data-if="c" style="display:none">"CenterCol"</span><span data-if="cpp" style="display:none">"CenterCol"</span><span data-if="com" style="display:none">"CenterCol"</span><span data-if="dotnet" style="display:none">"CenterCol"</span><span data-if="python" style="display:none">"CenterCol"</span></i>, <i><span data-if="hdevelop" style="display:inline">'CenterHeight'</span><span data-if="c" style="display:none">"CenterHeight"</span><span data-if="cpp" style="display:none">"CenterHeight"</span><span data-if="com" style="display:none">"CenterHeight"</span><span data-if="dotnet" style="display:none">"CenterHeight"</span><span data-if="python" style="display:none">"CenterHeight"</span></i>:
Position of the actual center of view defined by row, column, and height.
These values must be scaled to the interval [<i>-0.5</i>, <i>0.5</i>].
</p>
</li>
</ul>

<p>Automatic parameter determination:
You can set <i><span data-if="hdevelop" style="display:inline">'qa'</span><span data-if="c" style="display:none">"qa"</span><span data-if="cpp" style="display:none">"qa"</span><span data-if="com" style="display:none">"qa"</span><span data-if="dotnet" style="display:none">"qa"</span><span data-if="python" style="display:none">"qa"</span></i> (fourth value in the tuple) or
<i><span data-if="hdevelop" style="display:inline">'ZoomFac'</span><span data-if="c" style="display:none">"ZoomFac"</span><span data-if="cpp" style="display:none">"ZoomFac"</span><span data-if="com" style="display:none">"ZoomFac"</span><span data-if="dotnet" style="display:none">"ZoomFac"</span><span data-if="python" style="display:none">"ZoomFac"</span></i> (eighth value in the tuple) to <i><span data-if="hdevelop" style="display:inline">'auto'</span><span data-if="c" style="display:none">"auto"</span><span data-if="cpp" style="display:none">"auto"</span><span data-if="com" style="display:none">"auto"</span><span data-if="dotnet" style="display:none">"auto"</span><span data-if="python" style="display:none">"auto"</span></i>.
Then, the zooming factor and the center of view are
determined automatically such that the plot of the height field fills the
window as good as possible.
By setting <i><span data-if="hdevelop" style="display:inline">'qa'</span><span data-if="c" style="display:none">"qa"</span><span data-if="cpp" style="display:none">"qa"</span><span data-if="com" style="display:none">"qa"</span><span data-if="dotnet" style="display:none">"qa"</span><span data-if="python" style="display:none">"qa"</span></i> to <i><span data-if="hdevelop" style="display:inline">'auto'</span><span data-if="c" style="display:none">"auto"</span><span data-if="cpp" style="display:none">"auto"</span><span data-if="com" style="display:none">"auto"</span><span data-if="dotnet" style="display:none">"auto"</span><span data-if="python" style="display:none">"auto"</span></i>, the previous
orientation (or the default one) is kept.
By setting <i><span data-if="hdevelop" style="display:inline">'ZoomFac'</span><span data-if="c" style="display:none">"ZoomFac"</span><span data-if="cpp" style="display:none">"ZoomFac"</span><span data-if="com" style="display:none">"ZoomFac"</span><span data-if="dotnet" style="display:none">"ZoomFac"</span><span data-if="python" style="display:none">"ZoomFac"</span></i> to <i><span data-if="hdevelop" style="display:inline">'auto'</span><span data-if="c" style="display:none">"auto"</span><span data-if="cpp" style="display:none">"auto"</span><span data-if="com" style="display:none">"auto"</span><span data-if="dotnet" style="display:none">"auto"</span><span data-if="python" style="display:none">"auto"</span></i>,
the provided orientation is used.
It is important that the part of the window is
set correctly (using <a href="set_part.html"><code><span data-if="hdevelop" style="display:inline">set_part</span><span data-if="c" style="display:none">set_part</span><span data-if="cpp" style="display:none">SetPart</span><span data-if="com" style="display:none">SetPart</span><span data-if="dotnet" style="display:none">SetPart</span><span data-if="python" style="display:none">set_part</span></code></a>) before <code><span data-if="hdevelop" style="display:inline">set_paint</span><span data-if="c" style="display:none">set_paint</span><span data-if="cpp" style="display:none">SetPaint</span><span data-if="com" style="display:none">SetPaint</span><span data-if="dotnet" style="display:none">SetPaint</span><span data-if="python" style="display:none">set_paint</span></code> is called.
It is not possible to set any parameters after <i><span data-if="hdevelop" style="display:inline">'auto'</span><span data-if="c" style="display:none">"auto"</span><span data-if="cpp" style="display:none">"auto"</span><span data-if="com" style="display:none">"auto"</span><span data-if="dotnet" style="display:none">"auto"</span><span data-if="python" style="display:none">"auto"</span></i> in the tuple.
Furthermore <i><span data-if="hdevelop" style="display:inline">'auto'</span><span data-if="c" style="display:none">"auto"</span><span data-if="cpp" style="display:none">"auto"</span><span data-if="com" style="display:none">"auto"</span><span data-if="dotnet" style="display:none">"auto"</span><span data-if="python" style="display:none">"auto"</span></i> will only work correctly if
<i><span data-if="hdevelop" style="display:inline">'scale_plot'</span><span data-if="c" style="display:none">"scale_plot"</span><span data-if="cpp" style="display:none">"scale_plot"</span><span data-if="com" style="display:none">"scale_plot"</span><span data-if="dotnet" style="display:none">"scale_plot"</span><span data-if="python" style="display:none">"scale_plot"</span></i> is set
to <i><span data-if="hdevelop" style="display:inline">'true'</span><span data-if="c" style="display:none">"true"</span><span data-if="cpp" style="display:none">"true"</span><span data-if="com" style="display:none">"true"</span><span data-if="dotnet" style="display:none">"true"</span><span data-if="python" style="display:none">"true"</span></i> using <a href="set_window_param.html"><code><span data-if="hdevelop" style="display:inline">set_window_param</span><span data-if="c" style="display:none">set_window_param</span><span data-if="cpp" style="display:none">SetWindowParam</span><span data-if="com" style="display:none">SetWindowParam</span><span data-if="dotnet" style="display:none">SetWindowParam</span><span data-if="python" style="display:none">set_window_param</span></code></a>.</p>
<p>
<i>Example:</i>
<code><span data-if="hdevelop" style="display:inline">set_paint(WindowHandle, ['3d_plot','shaded',4,'auto'])</span><span data-if="c" style="display:none">set_paint(WindowHandle, ["3d_plot","shaded",4,"auto"])</span><span data-if="cpp" style="display:none">SetPaint(WindowHandle, ["3d_plot","shaded",4,"auto"])</span><span data-if="com" style="display:none">SetPaint(WindowHandle, ["3d_plot","shaded",4,"auto"])</span><span data-if="dotnet" style="display:none">SetPaint(WindowHandle, ["3d_plot","shaded",4,"auto"])</span><span data-if="python" style="display:none">set_paint(WindowHandle, ["3d_plot","shaded",4,"auto"])</span></code>
</p>
<p>This mode allows interactive display of the 3D data.
For an interactive rate, your graphics card needs to
be powerful enough and support OpenGL. See 该算子
<a href="update_window_pose.html"><code><span data-if="hdevelop" style="display:inline">update_window_pose</span><span data-if="c" style="display:none">update_window_pose</span><span data-if="cpp" style="display:none">UpdateWindowPose</span><span data-if="com" style="display:none">UpdateWindowPose</span><span data-if="dotnet" style="display:none">UpdateWindowPose</span><span data-if="python" style="display:none">update_window_pose</span></code></a> for an intuitive way of modifying the
parameters of the 3D plot (e.g., with the mouse).
</p>
<p>The colors of the axis are influenced by the colors set using
<a href="set_rgb.html"><code><span data-if="hdevelop" style="display:inline">set_rgb</span><span data-if="c" style="display:none">set_rgb</span><span data-if="cpp" style="display:none">SetRgb</span><span data-if="com" style="display:none">SetRgb</span><span data-if="dotnet" style="display:none">SetRgb</span><span data-if="python" style="display:none">set_rgb</span></code></a>, <a href="set_color.html"><code><span data-if="hdevelop" style="display:inline">set_color</span><span data-if="c" style="display:none">set_color</span><span data-if="cpp" style="display:none">SetColor</span><span data-if="com" style="display:none">SetColor</span><span data-if="dotnet" style="display:none">SetColor</span><span data-if="python" style="display:none">set_color</span></code></a>, and <a href="set_colored.html"><code><span data-if="hdevelop" style="display:inline">set_colored</span><span data-if="c" style="display:none">set_colored</span><span data-if="cpp" style="display:none">SetColored</span><span data-if="com" style="display:none">SetColored</span><span data-if="dotnet" style="display:none">SetColored</span><span data-if="python" style="display:none">set_colored</span></code></a>. The first
three colors set this way are used as colors for row, column, and height
axis (in this order).
</p>
<p>Additional parameters concerning the 3D plot can be set using 该算子
<a href="set_window_param.html"><code><span data-if="hdevelop" style="display:inline">set_window_param</span><span data-if="c" style="display:none">set_window_param</span><span data-if="cpp" style="display:none">SetWindowParam</span><span data-if="com" style="display:none">SetWindowParam</span><span data-if="dotnet" style="display:none">SetWindowParam</span><span data-if="python" style="display:none">set_window_param</span></code></a>.
</p>
<p>If you intend to use <i><span data-if="hdevelop" style="display:inline">'3d_plot'</span><span data-if="c" style="display:none">"3d_plot"</span><span data-if="cpp" style="display:none">"3d_plot"</span><span data-if="com" style="display:none">"3d_plot"</span><span data-if="dotnet" style="display:none">"3d_plot"</span><span data-if="python" style="display:none">"3d_plot"</span></i> on a Unix-like system, make sure
you have sufficient permissions on your graphics device.</p>
<p>
<i>Default:</i> <i><span data-if="hdevelop" style="display:inline">['3d_plot', 'shaded', 8, 0.939, -0.052, 0.296,
                             -0.165, 0.401, 0.072, -0.047, -0.073]</span><span data-if="c" style="display:none">["3d_plot", "shaded", 8, 0.939, -0.052, 0.296,
                             -0.165, 0.401, 0.072, -0.047, -0.073]</span><span data-if="cpp" style="display:none">["3d_plot", "shaded", 8, 0.939, -0.052, 0.296,
                             -0.165, 0.401, 0.072, -0.047, -0.073]</span><span data-if="com" style="display:none">["3d_plot", "shaded", 8, 0.939, -0.052, 0.296,
                             -0.165, 0.401, 0.072, -0.047, -0.073]</span><span data-if="dotnet" style="display:none">["3d_plot", "shaded", 8, 0.939, -0.052, 0.296,
                             -0.165, 0.401, 0.072, -0.047, -0.073]</span><span data-if="python" style="display:none">["3d_plot", "shaded", 8, 0.939, -0.052, 0.296,
                             -0.165, 0.401, 0.072, -0.047, -0.073]</span></i></p>
<p>
<i>Restriction:</i> Only for one-channel images.
</p>
</dd>

<dt><b><i><span data-if="hdevelop" style="display:inline">['vector_field', Mode, Step, MinLength, ScaleLength,
  CircleSize]</span><span data-if="c" style="display:none">["vector_field", Mode, Step, MinLength, ScaleLength,
  CircleSize]</span><span data-if="cpp" style="display:none">["vector_field", Mode, Step, MinLength, ScaleLength,
  CircleSize]</span><span data-if="com" style="display:none">["vector_field", Mode, Step, MinLength, ScaleLength,
  CircleSize]</span><span data-if="dotnet" style="display:none">["vector_field", Mode, Step, MinLength, ScaleLength,
  CircleSize]</span><span data-if="python" style="display:none">["vector_field", Mode, Step, MinLength, ScaleLength,
  CircleSize]</span></i></b></dt>
<dd>
<p>

Output a vector field. Thus, for <a href="#Mode"><i><code><span data-if="hdevelop" style="display:inline">Mode</span><span data-if="c" style="display:none">Mode</span><span data-if="cpp" style="display:none">Mode</span><span data-if="com" style="display:none">Mode</span><span data-if="dotnet" style="display:none">mode</span><span data-if="python" style="display:none">mode</span></code></i></a> <i><span data-if="hdevelop" style="display:inline">'vector_field'</span><span data-if="c" style="display:none">"vector_field"</span><span data-if="cpp" style="display:none">"vector_field"</span><span data-if="com" style="display:none">"vector_field"</span><span data-if="dotnet" style="display:none">"vector_field"</span><span data-if="python" style="display:none">"vector_field"</span></i>
a circle is drawn for each vector at the position of the pixel.
Furthermore, a line segment is drawn with the current vector.
Thereby the different parameters are:
</p>
<ul>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'Mode'</span><span data-if="c" style="display:none">"Mode"</span><span data-if="cpp" style="display:none">"Mode"</span><span data-if="com" style="display:none">"Mode"</span><span data-if="dotnet" style="display:none">"Mode"</span><span data-if="python" style="display:none">"Mode"</span></i>: Tells whether the visualized vector fields contain
absolute or relative coordinates. Possible values:
</p>
<ul>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'auto'</span><span data-if="c" style="display:none">"auto"</span><span data-if="cpp" style="display:none">"auto"</span><span data-if="com" style="display:none">"auto"</span><span data-if="dotnet" style="display:none">"auto"</span><span data-if="python" style="display:none">"auto"</span></i> (<i>default</i>): The visualization depends on
the semantic type of the vector field.
</p>
</li>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'absolute'</span><span data-if="c" style="display:none">"absolute"</span><span data-if="cpp" style="display:none">"absolute"</span><span data-if="com" style="display:none">"absolute"</span><span data-if="dotnet" style="display:none">"absolute"</span><span data-if="python" style="display:none">"absolute"</span></i>: Display vector fields containing absolute
coordinates.
</p>
</li>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'relative'</span><span data-if="c" style="display:none">"relative"</span><span data-if="cpp" style="display:none">"relative"</span><span data-if="com" style="display:none">"relative"</span><span data-if="dotnet" style="display:none">"relative"</span><span data-if="python" style="display:none">"relative"</span></i>: Display vector fields containing relative
coordinates.
</p>
</li>
</ul>
</li>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'Step'</span><span data-if="c" style="display:none">"Step"</span><span data-if="cpp" style="display:none">"Step"</span><span data-if="com" style="display:none">"Step"</span><span data-if="dotnet" style="display:none">"Step"</span><span data-if="python" style="display:none">"Step"</span></i>: Step size for drawing the vectors, i.e., the
distance between the drawn vectors.
</p>
</li>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'MinLength'</span><span data-if="c" style="display:none">"MinLength"</span><span data-if="cpp" style="display:none">"MinLength"</span><span data-if="com" style="display:none">"MinLength"</span><span data-if="dotnet" style="display:none">"MinLength"</span><span data-if="python" style="display:none">"MinLength"</span></i>: Minimum length a vector needs in order to be
displayed.
</p>
</li>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'ScaleLength'</span><span data-if="c" style="display:none">"ScaleLength"</span><span data-if="cpp" style="display:none">"ScaleLength"</span><span data-if="com" style="display:none">"ScaleLength"</span><span data-if="dotnet" style="display:none">"ScaleLength"</span><span data-if="python" style="display:none">"ScaleLength"</span></i>: Scales the vector length.
</p>
</li>
<li>
<p> <i><span data-if="hdevelop" style="display:inline">'CircleSize'</span><span data-if="c" style="display:none">"CircleSize"</span><span data-if="cpp" style="display:none">"CircleSize"</span><span data-if="com" style="display:none">"CircleSize"</span><span data-if="dotnet" style="display:none">"CircleSize"</span><span data-if="python" style="display:none">"CircleSize"</span></i>: Diameter of the drawn circles.
</p>
</li>
</ul>

<p>It should be noted that by setting <i><span data-if="hdevelop" style="display:inline">'vector_field'</span><span data-if="c" style="display:none">"vector_field"</span><span data-if="cpp" style="display:none">"vector_field"</span><span data-if="com" style="display:none">"vector_field"</span><span data-if="dotnet" style="display:none">"vector_field"</span><span data-if="python" style="display:none">"vector_field"</span></i> only the
internal parameters <i><span data-if="hdevelop" style="display:inline">'Mode'</span><span data-if="c" style="display:none">"Mode"</span><span data-if="cpp" style="display:none">"Mode"</span><span data-if="com" style="display:none">"Mode"</span><span data-if="dotnet" style="display:none">"Mode"</span><span data-if="python" style="display:none">"Mode"</span></i>, <i><span data-if="hdevelop" style="display:inline">'Step'</span><span data-if="c" style="display:none">"Step"</span><span data-if="cpp" style="display:none">"Step"</span><span data-if="com" style="display:none">"Step"</span><span data-if="dotnet" style="display:none">"Step"</span><span data-if="python" style="display:none">"Step"</span></i>, <i><span data-if="hdevelop" style="display:inline">'MinLength'</span><span data-if="c" style="display:none">"MinLength"</span><span data-if="cpp" style="display:none">"MinLength"</span><span data-if="com" style="display:none">"MinLength"</span><span data-if="dotnet" style="display:none">"MinLength"</span><span data-if="python" style="display:none">"MinLength"</span></i>,
<i><span data-if="hdevelop" style="display:inline">'ScaleLength'</span><span data-if="c" style="display:none">"ScaleLength"</span><span data-if="cpp" style="display:none">"ScaleLength"</span><span data-if="com" style="display:none">"ScaleLength"</span><span data-if="dotnet" style="display:none">"ScaleLength"</span><span data-if="python" style="display:none">"ScaleLength"</span></i>, and <i><span data-if="hdevelop" style="display:inline">'CircleSize'</span><span data-if="c" style="display:none">"CircleSize"</span><span data-if="cpp" style="display:none">"CircleSize"</span><span data-if="com" style="display:none">"CircleSize"</span><span data-if="dotnet" style="display:none">"CircleSize"</span><span data-if="python" style="display:none">"CircleSize"</span></i> are changed.
The current display mode is not changed.
</p>
<p>Vector field images are always displayed as vector fields, no matter which
<a href="#Mode"><i><code><span data-if="hdevelop" style="display:inline">Mode</span><span data-if="c" style="display:none">Mode</span><span data-if="cpp" style="display:none">Mode</span><span data-if="com" style="display:none">Mode</span><span data-if="dotnet" style="display:none">mode</span><span data-if="python" style="display:none">mode</span></code></i></a> is selected with <code><span data-if="hdevelop" style="display:inline">set_paint</span><span data-if="c" style="display:none">set_paint</span><span data-if="cpp" style="display:none">SetPaint</span><span data-if="com" style="display:none">SetPaint</span><span data-if="dotnet" style="display:none">SetPaint</span><span data-if="python" style="display:none">set_paint</span></code>.</p>
<p>
<i>Example:</i>
<code><span data-if="hdevelop" style="display:inline">set_paint(WindowHandle,['vector_field','auto',16,2,3,5])</span><span data-if="c" style="display:none">set_paint(WindowHandle,["vector_field","auto",16,2,3,5])</span><span data-if="cpp" style="display:none">SetPaint(WindowHandle,["vector_field","auto",16,2,3,5])</span><span data-if="com" style="display:none">SetPaint(WindowHandle,["vector_field","auto",16,2,3,5])</span><span data-if="dotnet" style="display:none">SetPaint(WindowHandle,["vector_field","auto",16,2,3,5])</span><span data-if="python" style="display:none">set_paint(WindowHandle,["vector_field","auto",16,2,3,5])</span></code>
</p>
<p>This results in an output of every 16th vector, that is longer than 2
pixels. Each vector is multiplied by 3 for output.</p>
<p>
<i>Restriction:</i> Only for vector field images.
</p>
</dd>
</dl>
<h2 id="sec_execution">运行信息</h2>
<ul>
  <li>多线程类型:可重入(与非独占操作符并行运行)。</li>
<li>多线程作用域:全局(可以从任何线程调用)。</li>
  <li>未经并行化处理。</li>
</ul>
<h2 id="sec_parameters">参数表</h2>
  <div class="par">
<div class="parhead">
<span id="WindowHandle" class="parname"><b><code><span data-if="hdevelop" style="display:inline">WindowHandle</span><span data-if="c" style="display:none">WindowHandle</span><span data-if="cpp" style="display:none">WindowHandle</span><span data-if="com" style="display:none">WindowHandle</span><span data-if="dotnet" style="display:none">windowHandle</span><span data-if="python" style="display:none">window_handle</span></code></b> (input_control)  </span><span>window <code>→</code> <span data-if="dotnet" style="display:none"><a href="HWindow.html">HWindow</a>, </span><span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">HHandle</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (handle)</span><span data-if="dotnet" style="display:none"> (<i>IntPtr</i>)</span><span data-if="cpp" style="display:none"> (<i>HHandle</i>)</span><span data-if="c" style="display:none"> (<i>handle</i>)</span></span>
</div>
<p class="pardesc">Window handle.</p>
</div>
  <div class="par">
<div class="parhead">
<span id="Mode" class="parname"><b><code><span data-if="hdevelop" style="display:inline">Mode</span><span data-if="c" style="display:none">Mode</span><span data-if="cpp" style="display:none">Mode</span><span data-if="com" style="display:none">Mode</span><span data-if="dotnet" style="display:none">mode</span><span data-if="python" style="display:none">mode</span></code></b> (input_control)  </span><span>string-array <code>→</code> <span data-if="dotnet" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="python" style="display:none">Sequence[Union[int, str, float]]</span><span data-if="cpp" style="display:none"><a href="HTuple.html">HTuple</a></span><span data-if="c" style="display:none">Htuple</span><span data-if="hdevelop" style="display:inline"> (string / </span><span data-if="hdevelop" style="display:inline">integer / </span><span data-if="hdevelop" style="display:inline">real)</span><span data-if="dotnet" style="display:none"> (<i>string</i> / </span><span data-if="dotnet" style="display:none">int / </span><span data-if="dotnet" style="display:none">long / </span><span data-if="dotnet" style="display:none">double)</span><span data-if="cpp" style="display:none"> (<i>HString</i> / </span><span data-if="cpp" style="display:none">Hlong / </span><span data-if="cpp" style="display:none">double)</span><span data-if="c" style="display:none"> (<i>char*</i> / </span><span data-if="c" style="display:none">Hlong / </span><span data-if="c" style="display:none">double)</span></span>
</div>
<p class="pardesc">Output mode. Additional parameters possible.</p>
<p class="pardesc"><span class="parcat">Default:
      </span>
    <span data-if="hdevelop" style="display:inline">'default'</span>
    <span data-if="c" style="display:none">"default"</span>
    <span data-if="cpp" style="display:none">"default"</span>
    <span data-if="com" style="display:none">"default"</span>
    <span data-if="dotnet" style="display:none">"default"</span>
    <span data-if="python" style="display:none">"default"</span>
</p>
<p class="pardesc"><span class="parcat">List of values:
      </span><span data-if="hdevelop" style="display:inline">'3d_plot'</span><span data-if="c" style="display:none">"3d_plot"</span><span data-if="cpp" style="display:none">"3d_plot"</span><span data-if="com" style="display:none">"3d_plot"</span><span data-if="dotnet" style="display:none">"3d_plot"</span><span data-if="python" style="display:none">"3d_plot"</span>, <span data-if="hdevelop" style="display:inline">'default'</span><span data-if="c" style="display:none">"default"</span><span data-if="cpp" style="display:none">"default"</span><span data-if="com" style="display:none">"default"</span><span data-if="dotnet" style="display:none">"default"</span><span data-if="python" style="display:none">"default"</span>, <span data-if="hdevelop" style="display:inline">'vector_field'</span><span data-if="c" style="display:none">"vector_field"</span><span data-if="cpp" style="display:none">"vector_field"</span><span data-if="com" style="display:none">"vector_field"</span><span data-if="dotnet" style="display:none">"vector_field"</span><span data-if="python" style="display:none">"vector_field"</span></p>
</div>
<h2 id="sec_result">结果</h2>
<p><code><span data-if="hdevelop" style="display:inline">set_paint</span><span data-if="c" style="display:none">set_paint</span><span data-if="cpp" style="display:none">SetPaint</span><span data-if="com" style="display:none">SetPaint</span><span data-if="dotnet" style="display:none">SetPaint</span><span data-if="python" style="display:none">set_paint</span></code> returns <TT>2</TT> (
      <TT>H_MSG_TRUE</TT>)
     if the parameter is correct and the
window is valid. Otherwise an exception is raised.</p>
<h2 id="sec_predecessors">可能的前置算子</h2>
<p>
<code><a href="query_paint.html"><span data-if="hdevelop" style="display:inline">query_paint</span><span data-if="c" style="display:none">query_paint</span><span data-if="cpp" style="display:none">QueryPaint</span><span data-if="com" style="display:none">QueryPaint</span><span data-if="dotnet" style="display:none">QueryPaint</span><span data-if="python" style="display:none">query_paint</span></a></code>, 
<code><a href="get_paint.html"><span data-if="hdevelop" style="display:inline">get_paint</span><span data-if="c" style="display:none">get_paint</span><span data-if="cpp" style="display:none">GetPaint</span><span data-if="com" style="display:none">GetPaint</span><span data-if="dotnet" style="display:none">GetPaint</span><span data-if="python" style="display:none">get_paint</span></a></code>
</p>
<h2 id="sec_successors">可能的后置算子</h2>
<p>
<code><a href="disp_image.html"><span data-if="hdevelop" style="display:inline">disp_image</span><span data-if="c" style="display:none">disp_image</span><span data-if="cpp" style="display:none">DispImage</span><span data-if="com" style="display:none">DispImage</span><span data-if="dotnet" style="display:none">DispImage</span><span data-if="python" style="display:none">disp_image</span></a></code>
</p>
<h2 id="sec_see">参考其它</h2>
<p>
<code><a href="get_paint.html"><span data-if="hdevelop" style="display:inline">get_paint</span><span data-if="c" style="display:none">get_paint</span><span data-if="cpp" style="display:none">GetPaint</span><span data-if="com" style="display:none">GetPaint</span><span data-if="dotnet" style="display:none">GetPaint</span><span data-if="python" style="display:none">get_paint</span></a></code>, 
<code><a href="query_paint.html"><span data-if="hdevelop" style="display:inline">query_paint</span><span data-if="c" style="display:none">query_paint</span><span data-if="cpp" style="display:none">QueryPaint</span><span data-if="com" style="display:none">QueryPaint</span><span data-if="dotnet" style="display:none">QueryPaint</span><span data-if="python" style="display:none">query_paint</span></a></code>, 
<code><a href="disp_image.html"><span data-if="hdevelop" style="display:inline">disp_image</span><span data-if="c" style="display:none">disp_image</span><span data-if="cpp" style="display:none">DispImage</span><span data-if="com" style="display:none">DispImage</span><span data-if="dotnet" style="display:none">DispImage</span><span data-if="python" style="display:none">disp_image</span></a></code>, 
<code><a href="set_shape.html"><span data-if="hdevelop" style="display:inline">set_shape</span><span data-if="c" style="display:none">set_shape</span><span data-if="cpp" style="display:none">SetShape</span><span data-if="com" style="display:none">SetShape</span><span data-if="dotnet" style="display:none">SetShape</span><span data-if="python" style="display:none">set_shape</span></a></code>, 
<code><a href="set_rgb.html"><span data-if="hdevelop" style="display:inline">set_rgb</span><span data-if="c" style="display:none">set_rgb</span><span data-if="cpp" style="display:none">SetRgb</span><span data-if="com" style="display:none">SetRgb</span><span data-if="dotnet" style="display:none">SetRgb</span><span data-if="python" style="display:none">set_rgb</span></a></code>, 
<code><a href="set_color.html"><span data-if="hdevelop" style="display:inline">set_color</span><span data-if="c" style="display:none">set_color</span><span data-if="cpp" style="display:none">SetColor</span><span data-if="com" style="display:none">SetColor</span><span data-if="dotnet" style="display:none">SetColor</span><span data-if="python" style="display:none">set_color</span></a></code>, 
<code><a href="set_gray.html"><span data-if="hdevelop" style="display:inline">set_gray</span><span data-if="c" style="display:none">set_gray</span><span data-if="cpp" style="display:none">SetGray</span><span data-if="com" style="display:none">SetGray</span><span data-if="dotnet" style="display:none">SetGray</span><span data-if="python" style="display:none">set_gray</span></a></code>, 
<code><a href="set_window_param.html"><span data-if="hdevelop" style="display:inline">set_window_param</span><span data-if="c" style="display:none">set_window_param</span><span data-if="cpp" style="display:none">SetWindowParam</span><span data-if="com" style="display:none">SetWindowParam</span><span data-if="dotnet" style="display:none">SetWindowParam</span><span data-if="python" style="display:none">set_window_param</span></a></code>, 
<code><a href="update_window_pose.html"><span data-if="hdevelop" style="display:inline">update_window_pose</span><span data-if="c" style="display:none">update_window_pose</span><span data-if="cpp" style="display:none">UpdateWindowPose</span><span data-if="com" style="display:none">UpdateWindowPose</span><span data-if="dotnet" style="display:none">UpdateWindowPose</span><span data-if="python" style="display:none">update_window_pose</span></a></code>
</p>
<h2 id="sec_module">模块</h2>
<p>
Foundation</p>
<!--OP_REF_FOOTER_START-->
<hr>
<div class="indexlink">
<a href="index_classes.html"><span data-if="dotnet" style="display:none;">类别</span><span data-if="cpp" style="display:none;">类别</span></a><span data-if="dotnet" style="display:none;"> | </span><span data-if="cpp" style="display:none;"> | </span><a href="index_by_name.html">算子列表</a>
</div>
<div class="footer">
<div class="copyright">HALCON算子参考手册 Copyright © 2015-2023 51Halcon</div>
</div>
</div>
</body>
</html>
